package com.wx.bootsecurity.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.wx.bootsecurity.entity.WxRolePermissionRelation;
import com.wx.bootsecurity.mapper.WxRolePermissionRelationMapper;
import com.wx.bootsecurity.service.WxRolePermissionRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 后台用户角色和权限关系表 服务实现类
 * </p>
 *
 * @author 阿尔法哲
 * @since 2021-07-22
 */
@Service
public class WxRolePermissionRelationServiceImpl extends ServiceImpl<WxRolePermissionRelationMapper, WxRolePermissionRelation> implements WxRolePermissionRelationService {

    @Autowired
    private WxRolePermissionRelationMapper wxRolePermissionRelationMapper;


    @Override
    public List<WxRolePermissionRelation> findByRoleIds(List<Long> roleIds) {
        List<WxRolePermissionRelation> rolePermissionRelationList = wxRolePermissionRelationMapper.findByRoleIds(roleIds);
        return rolePermissionRelationList;
    }
}
